package com.ruoyi.mapper;


import com.ruoyi.domain.TDailyStatement;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 每日汇报Mapper接口
 * 
 * @author mzr
 * @date 2025-04-11
 */
public interface TDailyStatementMapper 
{
    /**
     * 查询每日汇报
     * 
     * @param id 每日汇报主键
     * @return 每日汇报
     */
    public TDailyStatement selectTDailyStatementById(Long id);

    /**
     * 查询每日汇报列表
     * 
     * @param tDailyStatement 每日汇报
     * @return 每日汇报集合
     */
    public List<TDailyStatement> selectTDailyStatementList(TDailyStatement tDailyStatement);

    /**
     * 新增每日汇报
     * 
     * @param tDailyStatement 每日汇报
     * @return 结果
     */
    public int insertTDailyStatement(TDailyStatement tDailyStatement);

    /**
     * 修改每日汇报
     * 
     * @param tDailyStatement 每日汇报
     * @return 结果
     */
    public int updateTDailyStatement(TDailyStatement tDailyStatement);

    /**
     * 删除每日汇报
     * 
     * @param id 每日汇报主键
     * @return 结果
     */
    public int deleteTDailyStatementById(Long id);

    /**
     * 批量删除每日汇报
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTDailyStatementByIds(Long[] ids);

    TDailyStatement loadByUserIdAndDate(@Param("date") Date date, @Param("userIdI")int userIdI);
}
